package helloworld.jface;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.window.ApplicationWindow;

public class ExitAction extends Action{
	
	ApplicationWindow m_Window; 
	
	public ExitAction(ApplicationWindow w){
		m_Window = w;
		setText("E&xit@Ctrl+W"); 
		setToolTipText("Exit the application");
		
	}
	
	public void run() {
		m_Window.close();
	}
}
